Skip to content

[X86] Allow EVEX compression for VPMOV*2M + KMOV pattern#175219

Merged
RKSimon merged 16 commits intollvm:mainfrom
realqhc:extend-comparebitcastvxi1
Jan 12, 2026
Merged

[X86] Allow EVEX compression for VPMOV*2M + KMOV pattern#175219
RKSimon merged 16 commits intollvm:mainfrom
realqhc:extend-comparebitcastvxi1

Conversation

@realqhc
Copy link
Contributor

@realqhc realqhc commented Jan 9, 2026

This patch extends the X86CompressEVEX pass to recognize and compress multi-instruction masking patterns. It also adds relevant tests for the new pattern.

Fixes #171746
Fixes #174871

@realqhc realqhc requested a review from RKSimon January 9, 2026 18:26
@realqhc
Copy link
Contributor Author

realqhc commented Jan 9, 2026

I think evex-to-vex-compress.mir is more appropriate for logic related tests, so I put the positive and negative conversion tests there.

Copy link
Collaborator

@RKSimon RKSimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RKSimon RKSimon enabled auto-merge (squash) January 12, 2026 12:12
@RKSimon RKSimon merged commit 4790a14 into llvm:main Jan 12, 2026
9 of 10 checks passed
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Jan 18, 2026
This patch extends the X86CompressEVEX pass to recognize and compress
multi-instruction masking patterns. It also adds relevant tests for the
new pattern.

Fixes llvm#171746
Fixes llvm#174871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants